import request from '@/utils/request'


//获取商品一级分类
export function getPrimaryClass(query) {
  return request({
    url: '/admin/getPrimaryClass',
    method: 'get',
    params: query
  })
}
//获取商品二级分类
export function getSecondaryClass(query) {
  return request({
    url: '/admin/getSecondaryClass',
    method: 'get',
    params: query
  })
}